<?php
/**
 * Jishupu-Laravel-Vue-Admin
 * @Author:技术铺<jishupu@qq.com>
 * @Date: 2021/12/29
 */

namespace App\Exceptions;

use App\Traits\UnifiedResponse;
use Exception;

/**
 * 权限验证异常报告
 * Class PermissionException
 * @package App\Exceptions
 */
class PermissionException extends Exception
{
    use UnifiedResponse;

    public function render($request)
    {
        return $this->errorPermission($this->getMessage() ?: "");
    }
}
